#include "EventConnection.h"
#include <vector>

using namespace std;

namespace PFS
{
    EventConnection::EventConnection()
    {}

    EventConnection::EventConnection(Tcp *tcp, short flags)
        :m_tcp(tcp),event_flag(flags)
    {}

    void EventConnection::set_fd(int fd)
    {
        m_tcp->set_fd(fd);
    }

    int EventConnection::get_fd()
    {
        return m_tcp->get_fd();;
    }

    void EventConnection::set_tcp(const Tcp *tcp)
    {
        m_tcp->set_fd(tcp->get_fd(fd));
    }

    Tcp* EventConnection::get_tcp()
    {
        return m_tcp;
    }

    void EventConnection::set_event_flag(short flags)
    {
        flag = flags;
    }

    struct event* EventConnection::get_event()
    {
        return &ev;
    }
}
